window.shootPeople = window.shootPeople || {};
shootPeople.Ranking = function () {
    var s = this;
    annie.Sprite.call(s);
    /*_a2x_need_start*/s.count_txt=null;s.returnHome_btn=null;s.start_btn=null;/*_a2x_need_end*/
    annie.initRes(s, "shootPeople", "Ranking");
    s.returnHome_btn.mouseChildren = false;
    s.start_btn.mouseChildren = false;
    s.addEventListener(annie.Event.ADD_TO_STAGE, function (e) {
        userInfo.currentStatus = "shootPeople.Ranking"
        s.count_txt.text = userInfo.score;
    });
    s.addEventListener(annie.MouseEvent.CLICK, function (e) {
        if (e.target.name == "returnHome_btn") {
            annie.globalDispatcher.dispatchEvent("onJump", "shootPeople.home");
        } else if (e.target.name == "start_btn") {
            annie.globalDispatcher.dispatchEvent("onJump", "shootPeople.game");
        } else if (e.target.name == "raing_btn") {
            annie.globalDispatcher.dispatchEvent("onJump", "shootPeople.AllRanking");
        }
    });
};
A2xExtend(shootPeople.Ranking, annie.Sprite);
